package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;

import com.ygs.secs.mapper.ProfessionMapper;

import java.util.List;

import com.ygs.secs.model.Profession;
import com.ygs.secs.service.ProfessionService;

@Service
public class ProfessionServiceImpl implements ProfessionService {

    @Resource
    private ProfessionMapper professionMapper;

    @Override
    public int deleteByPrimaryKey(Integer professionid) {
        return professionMapper.deleteByPrimaryKey(professionid);
    }

    @Override
    public int insert(Profession record) {
        return professionMapper.insert(record);
    }

    @Override
    public int insertSelective(Profession record) {
        return professionMapper.insertSelective(record);
    }

    @Override
    public Profession selectByPrimaryKey(Integer professionid) {
        return professionMapper.selectByPrimaryKey(professionid);
    }

    @Override
    public int updateByPrimaryKeySelective(Profession record) {
        return professionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Profession record) {
        return professionMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<Profession> list) {
        return professionMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<Profession> list) {
        return professionMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<Profession> list) {
        return professionMapper.batchInsert(list);
    }

    @Override
    public int batchDelete(Integer[] professions) {
        return professionMapper.batchDelete(professions);
    }

    @Override
    public List<Profession> getAllProfession() {
        return professionMapper.getAllProfession();
    }

}
